/*     */ package com.cr.business.service.impl;
/*     */ 
/*     */ import com.cr.business.domain.CrUser;
import com.cr.business.dto.RankingListDto;
/*     */ import com.cr.business.mapper.CrUserMapper;
/*     */ import com.cr.business.service.ICrUserService;
/*     */ import com.cr.common.core.text.Convert;
/*     */ import com.cr.common.utils.MyDateUtils;
/*     */ import java.sql.SQLIntegrityConstraintViolationException;
import java.util.List;
/*     */ import org.springframework.beans.factory.annotation.Autowired;
/*     */ import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Service;
/*     */ 
/*     */ @Service
/*     */ public class CrUserServiceImpl implements ICrUserService {
/*     */   @Autowired
/*     */   private CrUserMapper crUserMapper;
/*     */   
/*     */   public CrUser selectCrUserByUserId(Long userId) {
/*  33 */     return this.crUserMapper.selectCrUserByUserId(userId);
/*     */   }
/*     */   
/*     */   public List<CrUser> selectCrUserList(CrUser crUser) {
/*  45 */     return this.crUserMapper.selectCrUserList(crUser);
/*     */   }
/*     */   
/*     */   public int insertCrUser(CrUser crUser) throws DuplicateKeyException {
/*  57 */     crUser.setCreateTime(MyDateUtils.getNowDate());
/*  58 */     return this.crUserMapper.insertCrUser(crUser);
/*     */   }
/*     */   
/*     */   public int updateCrUser(CrUser crUser) {
/*  70 */     crUser.setUpdateTime(MyDateUtils.getNowDate());
/*  71 */     return this.crUserMapper.updateCrUser(crUser);
/*     */   }
/*     */   
/*     */   public int deleteCrUserByUserIds(String userIds) {
/*  83 */     return this.crUserMapper.deleteCrUserByUserIds(Convert.toStrArray(userIds));
/*     */   }
/*     */   
/*     */   public int deleteCrUserByUserId(Long userId) {
/*  95 */     return this.crUserMapper.deleteCrUserByUserId(userId);
/*     */   }
/*     */   
/*     */   public CrUser selectCrUserByloginId(String loginId) {
/* 100 */     return this.crUserMapper.selectCrUserByloginId(loginId);
/*     */   }

            @Override
            public List<RankingListDto> selectRankingList(Integer userType){
                return crUserMapper.selectRankingList(userType);
            }
            
            @Override
            public List<RankingListDto> selectRankingDetail(Long userId){
                return crUserMapper.selectRankingDetail(userId);
            }
/*     */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-business-4.7.0.jar!\com\cr\business\service\impl\CrUserServiceImpl.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */